from matplotlib import pyplot as plt
import numpy as np

a = np.array([22,87,5,43,56,73,55,54,11,20,51,5,79,31,27])

# plt.figure(figsize=(50, 20), dpi=80)
plt.hist(a, bins =  [i for i in range(0,100,20)])

plt.title("histogram")
plt.show()